package com.qiyang.mq;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created on 2018/6/8.
 *
 * @author sehuaqi.
 * 描述：
 */
@Component
public class HelloReceiver2 {

    @RabbitHandler
    @RabbitListener(queues = "hello")
    public void process(String hello){

        System.out.println("Receiver2:消费" + hello);
    }
}
